package it.cast.wechat.pojo;

import it.cast.wechat.dto.OrderVo;

import java.util.Date;

public class Orders {
    private String orderId;

    private Date orderTime;

    private Double total;

    private Integer state;

    private String userId;

    private String addressId;

    private String describess;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId == null ? null : orderId.trim();
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getAddressId() {
        return addressId;
    }

    public void setAddressId(String addressId) {
        this.addressId = addressId == null ? null : addressId.trim();
    }

    public String getDescribess() {
        return describess;
    }

    public void setDescribess(String describess) {
        this.describess = describess == null ? null : describess.trim();
    }

    public OrderVo builderOrderVo(){
        OrderVo orderVo = new OrderVo();
        orderVo.setOrderTime(this.orderTime);
        orderVo.setTotal(this.total);
        orderVo.setUserId(this.userId);
        orderVo.setOrderId(this.orderId);
        orderVo.setState(this.state);
        orderVo.setDescribess(this.describess);
        return orderVo;
    }
}